interface EnvConfig {
  ENV: string;
  BASE_URL: string;
  API_URL: string;
  UPLOAD_URL: string;
  PUBLIC_PATH: string;
  DEBUG: boolean;
  LOG_LEVEL: string;
}

const env: EnvConfig = {
  ENV: process.env.REACT_APP_ENV || 'development',
  BASE_URL: process.env.REACT_APP_BASE_URL || 'http://127.0.0.1:9173',
  API_URL: process.env.REACT_APP_API_URL || 'http://127.0.0.1:9173/api',
  UPLOAD_URL: process.env.REACT_APP_UPLOAD_URL || 'http://127.0.0.1:9173/upload',
  PUBLIC_PATH: process.env.REACT_APP_PUBLIC_PATH || '/',
  DEBUG: process.env.REACT_APP_DEBUG === 'true',
  LOG_LEVEL: process.env.REACT_APP_LOG_LEVEL || 'error',
};

export const isDev = env.ENV === 'development';
export const isProd = env.ENV === 'production';

export default env; 